package cn.lcvc.xnc.application.dao;

import cn.lcvc.xnc.application.model.WasteDisposalMappingPicture;
import cn.lcvc.xnc.authority.dao.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;


@Mapper
public interface WasteDisposalMappingPictureMapper extends BaseMapper<WasteDisposalMappingPicture> {
    /**
     * 插入测绘管理模型图片信息
     * @param mappingId
     * @param dsmUrl
     * @param pictureUrl
     * @return
     */
    @Insert("insert into waste_disposal_site_mapping_picture(id,mapping_id,dsm_url,picture_url,remake) values(null,#{mappingId},#{dsmUrl},#{pictureUrl},#{remake})")
    int saveInfo(Serializable mappingId, Serializable dsmUrl, Serializable pictureUrl, Serializable remake);


    /**
     * 删除该测绘管理记录对应的图片信息
     * @param mappingId
     */
    int deleteByMappingId(java.io.Serializable mappingId);

    WasteDisposalMappingPicture findByMappingId(java.io.Serializable mappingId);
}
